<?php

include("vendor/autoload.php");

use MathPHP\LinearAlgebra\MatrixFactory;

for ($i = 0; $i < 1000; $i++) {
    $arr[] = array_pad([], 1000, 1);
}
$A = MatrixFactory::create($arr);

$s = time();
$R = $A->multiply($A)->scalarMultiply(2)->add($A->scalarMultiply(3))->getMatrix();
$e = time();

echo "MathPHP use: ", $e - $s, "s";

sleep(10000);
